<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>

<%@ page import="com.conversationboard.config.*" %>
<%@ page import="com.conversationboard.model.StyleSheets"%>

<%@ page pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>

<%@ page import="com.conversationboard.view.MainMenu"%>
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>Cache Statistics</title>
		<link rel="stylesheet"title="Conversation Board" type="text/css" href="<%=Configuration.getInstance().getRoot()%>/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>">
	</head>

	<body>
	
		<%= MainMenu.display(request.getUserPrincipal()) %>
	
		<div class="headingblock">
			<h1>Distinct IPs for User: ${user.displayName}</h1>
		</div>

		<div class="mainblock">

			<div class="formsectionlight">
				<h2>IP Addresses</h2>
	
				<table class="table">
					
					<tr class="header">
						<td class="cell">IP Address</td>
						<td class="cell">DNS Name</td>
					</tr>			
				
					<c:forEach var="ipAddress" items="${distinctIPs}">
						<tr class="row">
							<td class="cell">${ipAddress.ipAddress}</td>
							<td class="cell">${ipAddress.dnsName}</td>
						</tr>
					</c:forEach>
					
				</table>
				
			</div>
		</div>
			
		<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
		<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>--> 
		
	</body>
	
</html>
